package com.zh.web.domain.media.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.web.base.BaseModel;
import com.zh.web.enums.State;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "作品信息实体")
@TableName("ls_work_info")
public class WorkInfo extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "作品id")
    private Long worksId;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "点赞状态 1 0")
    private State praise;
    @ApiModelProperty(value = "收藏状态 1 0")
    private State collect;
    @ApiModelProperty(value = "我的浏览量")
    private Integer viewCount;
    @ApiModelProperty(value = "我的分享量")
    private Integer shareCount;
}